home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3c
/
clock.z
/
clock
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
CCCCLLLLOOOOCCCCKKKK((((3333CCCC)))) CCCCLLLLOOOOCCCCKKKK((((3333CCCC))))
NNNNAAAAMMMMEEEE
clock - report CPU time used
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttiiiimmmmeeee....hhhh>>>>
cccclllloooocccckkkk____tttt cccclllloooocccckkkk ((((vvvvooooiiiidddd))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_c_l_o_c_k returns the amount of CPU time used since the first call to _c_l_o_c_k.
The unit time of clock (microseconds) is indicated in the macro
CLOCKS_PER_SEC found in the file <_t_i_m_e._h>. The time reported is the sum
of the user and system times of the calling process and its terminated
child processes for which it has executed _w_a_i_t(2), _p_c_l_o_s_e(3S), or
_s_y_s_t_e_m(3S).
The resolution of the clock is 10 milliseconds on IRIS workstations.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
times(2), wait(2), popen(3S), system(3S).
BBBBUUUUGGGGSSSS
The implementation of _c_l_o_c_k conflicts with the definition of the routine
found in the ANSI C Standard. The discrepancy will be transparent,
however, so long as programs which adhere to that Standard use the
difference in two invocations of _c_l_o_c_k for timing information, as
recommended by the Standard.
The value returned by _c_l_o_c_k is defined in microseconds for compatibility
with systems that have CPU clocks with much higher resolution. Because
of this, the value returned will wrap around after accumulating only 2147
seconds of CPU time (about 36 minutes).
PPPPaaaaggggeeee 1111